@echo off
cls

set projectRoot=C:\dev\projects\LINGUAGGI\FOL
echo projectRoot= %projectRoot%
set jtb-path=C:\dev\projects\LINGUAGGI\jtb
echo jtb-path= %jtb-path%
set javacc-installation-path=c:\dev\projects\LINGUAGGI\javacc-3.2
echo javacc-installation-path= %javacc-installation-path%

cd %projectRoot%\javacc-test\

del controllogic
del controllogic\syntaxtree
del controllogic\visitor
del controllogic\generatedvisitor

copy %projectRoot%\grammar\FOLParser.jj .\controllogic
cd controllogic


echo ***********************************************
echo *** GENERAZIONE DEL PARSER CON JTB e JAVACC ***
echo ***********************************************

java -jar %jtb-path%\jtb132.jar FOLParser.jj -vp controllogic
call %javacc-installation-path%\bin\javacc.bat -debug_parser  jtb.out.jj

cd ..
